package com.bestcem.xm.txtanls.entity.pojo;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/**
 * TXTANLS_TOPIC表实体类
 *
 * @author liheng
 * @version v1.0
 * @date 2021/5/10-16:51
 */
@Getter
@Setter
public class TopicDO {


    public TopicDO() {
    }


    public TopicDO(String projectId, String name, String topicGID, Integer type, Integer status) {
        this.projectId = projectId;
        this.name = name;
        this.topicGID = topicGID;
        this.type = type;
        this.status = status;
    }

    public TopicDO(String projectId, String name, String topicGID, Integer type, Integer status, List<String> keywords) {
        this.projectId = projectId;
        this.name = name;
        this.topicGID = topicGID;
        this.type = type;
        this.status = status;
        this.keyDict = keywords;
    }

    /**
     * 主键
     */
    private String id;

    /**
     * 分析项目id
     */
    private String projectId;
    /**
     * 关键词list
     */
    private List<String> keyDict;
    /**
     * 话题/组名称
     */
    private String name;
    /**
     * 话题组id
     */
    private String topicGID;
    /**
     * 话题类型
     *
     * @see com.bestcem.xm.txtanls.grpc.v1.enums.TopicTypeEnum
     */
    private Integer type;
    /**
     * 话题状态
     *
     * @see com.bestcem.xm.txtanls.enums.TopicStatusEnum
     */
    private Integer status;

    /**
     * 创建人id
     */
    private String createdId;

    /**
     * 创建时间
     */
    private Date createdDate;

    /**
     * 更新人id
     */
    private String updatedId;

    /**
     * 更新时间
     */
    private Date updatedDate;

    /**
     * 是否是示例数据
     */
    private Boolean sample;
}
